package com.siwei.mes.mapper.erp;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.erp.Contract;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * (Contract)表数据库访问层
 *
 * @author linzi
 * @since 2024-08-14 22:11:30
 */
public interface ContractMapper extends BaseMapper<Contract> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Contract> getList(Contract entity);

    /**
     * 根据id获取
     *
     * @param CID
     * @return
     */
    Contract loadByCID(@Param("CID") Integer CID);

    /**
     * 根据任务单号集合查询合同信息
     *
     * @param frwdList
     * @return
     */
    List<Contract> selectByFrwdList(@Param("frwdList") Set<Integer> frwdList);
}
